package com.butnet.myframe.form;

import org.apache.commons.beanutils.ConvertUtils;
import org.apache.commons.beanutils.converters.DateConverter;
import org.apache.struts.action.ActionForm;

public class BasicForm extends ActionForm {
	private static final long serialVersionUID = 1L;
	private static boolean initCov = false;
	public BasicForm() {
		if(!initCov){
			initCov = true;
			DateConverter d = new DateConverter();
			String[] datePattern = { "yyyy-MM-dd HH:mm:ss", "yyyy-MM-dd", "yyyy/MM/dd", "yyyy.MM.dd", };
			d.setPatterns(datePattern);
			ConvertUtils.register(d, java.util.Date.class);
		}
	}
}
